package com.bjpowernode.p2p.service;

import com.bjpowernode.p2p.model.user.User;

public interface UserService {
    /**
     * 查询平台所有用户
     * @return
     */
    Integer queryAllUser();

    /**
     * 验证手机号是否被注册
     * @param phone
     * @return
     */
    User queryPhone(String phone);

    /**
     * 根据用户注册的手机号和设置的密码注册用户
     * @param phone
     * @param loginPassword
     * @return
     */
    User addUser(String phone, String loginPassword) throws Exception;

    int modifyUser(User user);

    User queryLoginCheck(String phone, String loginPassword);

    User queryUser(Integer id);
}
